package com.example.demo.phone.mapper;

import com.example.demo.phone.entity.PhoneDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PhoneMapper {

    List<PhoneDTO> list(@Param("code") Integer code);

    int add(PhoneDTO dto);

    int update(PhoneDTO dto);

    int delete(@Param("id") String id);
}
